package com.amgl.amupush;

import android.os.Bundle;

import com.amgl.amupush.base.BaseActivity;

import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.jpush.android.api.JPushInterface;
import timber.log.Timber;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ButterKnife.bind(this);

        //申请JPush需要的授权
        JPushInterface.requestPermission(this);
    }

    @Override
    protected void onStart() {
        super.onStart();
        Timber.d("on start");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Timber.d("on stop");
    }

    @OnClick(R.id.btn_start)
    void startMsg() {
        Timber.d("start msg");
    }

    @OnClick(R.id.btn_stop)
    void stopMsg() {
        Timber.d("stop msg");
    }
}
